package service;

import com.github.pagehelper.PageInfo;
import entity.User;
import exception.ServiceException;

import javax.servlet.http.HttpServletRequest;

/**
 * @author Shao Liwei
 * @date 2021/1/11 14:28
 * description:
 */
public interface UserService {
    PageInfo<User> queryAllUsers(HttpServletRequest request);

    User queryUser(HttpServletRequest request);

    String changeUsers(HttpServletRequest request);

    int loginBack(HttpServletRequest request);

    User findLoginDate(User user) throws ServiceException;

    User login(String login_name, String password) throws ServiceException;

    boolean checkLoginName(String loginName) throws ServiceException;

    boolean checkEmail(String email) throws ServiceException;

    boolean registUser(User user) throws ServiceException;

    boolean updateLoginDate(Integer id) throws ServiceException;

    boolean changeUser(User user) throws ServiceException;

    User selectDetailGPById(int id) throws ServiceException;
}
